package library.service;

import library.po.User;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public interface UserService{

    SqlSession getSqlSession();

    int deleteById(String userId);

    int insert(User record);

    User selectById(String userId);

    int updateSelective(User record);

    int updateById(User record);

    void updatePassword(User user);

    User login(User noTypeUser);

    User judgeIdentity(User user);

    void closeSqlsession();

    List<User> selectAllUsers();

    List<User> selectUser(String str);

    int loseCredit(String userId);
}
